package com.debugassistant.service.crawl;

import org.neowebcrawler.crawler.CrawlerManager;
import org.neowebcrawler.dao.WebContentDao;
import org.neowebcrawler.util.Config;

public class exceptionGoogleCrawler {

	public static void main(String[] args) {
		if ("start".equals(Config.getAppStart())) {
			CrawlerManager.start();
		} else if ("restart".equals(Config.getAppStart())) {
			System.out.println("restart");
			WebContentDao webContentDao = new WebContentDao();
			webContentDao.setStatusForRecrawl();
			CrawlerManager.restart();
		} else {
			System.err.println("app.start参数设置错误！！");
		}
	}

}
